#!/bin/bash
make clean
make
# run and use default file
./main
if [ $? -ne 0 ] ;then
    # run with use custom file
    ./main ./data/Starships.op8 ./data/Stars.op8
else
    echo "runing failed."
fi
grep '\<V.*o\>' result.txt 
if [ $? -ne 0 ] ;then
    echo "Not found."
else
    echo "Found."
fi
